<?php
/**
 * 备份数据库模块
 *
 */
 include('mod_config.php');
 include($conf["fun_path"].'phpzip.php'); 

//Tpl
 $tpl -> set_file("main", "database.htm");
 $tpl -> set_block('main', 'TBL_LIST', 'tbl_list');  //数据表列表

/* 返回表名 */
 $tables = getTables( $conf["Database"], $conf['tbl_prefix']);
 foreach ($tables as $value)
 {
   $tpl -> set_var('tbl_name', $value);	  
   $tpl -> parse('tbl_list', 'TBL_LIST', true);
 }
 $tpl -> set_var(array(
                        'admin_url' => $admin_url
                       ));
 $tpl -> parse("Out_main", "main");
 $tpl -> p("Out_main");
?>